<template>
    <div class="child">
        <h2>我是Child组件（子组件）</h2>
        <Son></Son>
    </div>
</template>

<script>
    import Son from './Son.vue';
    export default {
        name: 'Child', components: {
            Son: Son,
        }
    }
</script>
<style lang="css">
    .child {
        background-color: red;
        padding: 10px;
    }
</style>